
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary: #16baaa;
    --secondary: #7e22ce;
    --light-bg: #f8fafc;
    --lighter-bg: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --user-msg: rgba(22, 186, 170, 0.08);
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.05);
}

body {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--lighter-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(22, 186, 170, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(126, 34, 206, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #16baaa, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(22, 186, 170, 0.2);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1;
}

.header::after {
    content: '';
    display: block;
    width: 350px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 20px auto;
    border-radius: 3px;
}


.preview-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
    padding: 0 5px 20px 0;
}

.preview-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
    min-height: 80px;
    flex-shrink: 0;
    margin-top: 10px;
}

.preview-item:hover {
    box-shadow: 0 5px 15px var(--shadow);
    border-color: var(--primary);
}

.preview-item.active {
    border-color: var(--primary);
    background: var(--user-msg);
}

.preview-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.preview-item-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.preview-item-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.preview-item-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* 标准属性作为后备 */
    -moz-box-orient: vertical;
}

.preview-detail {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-detail .empty-state {
    flex: 1;
    min-height: 100%;
}

.preview-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.preview-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-section h3 i {
    font-size: 1.2rem;
}

.preview-request {
    background: rgba(0, 0, 0, 0.03);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.preview-response {
    line-height: 1.6;
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin: 10px 0px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-message {
    color: #6c757d;
    font-size: 18px;
    text-align: center;
}

.controls-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-connected {
    background-color: #28a745;
}

.status-disconnected {
    background-color: #dc3545;
}

.video-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.layui-btn {
    border-radius: 5px;
    margin-left: 0px !important;
    margin-right: 10px !important;

}
.layui-btn:hover {
    background: #e9ecef;
    border-color: var(--primary);
    color: var(--primary);
    border: 1px solid var(--primary) !important;
}

.layui-btn i , .layui-btn-danger i{
    color: white !important;
}

.layui-btn:hover i , .layui-btn-primary i {
    color: var(--primary) !important;
}


.layui-btn-normal {
    background: #149a8c;
}

.layui-btn-normal:hover {
    border: 0;
}

.layui-btn-xs {
    font-size: 11px;
}

.layui-input:focus {
    border-color: #16baaa !important;
    box-shadow: 0 0 0 3px rgba(22, 186, 170, 0.15) !important;
    transition: all 0.3s ease !important;
}

.layui-textarea:focus {
    border-color: #16baaa !important;
    box-shadow: 0 0 0 3px rgba(22, 186, 170, 0.15) !important;
    transition: all 0.3s ease !important;
}

.layui-select:focus {
    border-color: #16baaa !important;
    box-shadow: 0 0 0 3px rgba(22, 186, 170, 0.15) !important;
    transition: all 0.3s ease !important;
}

.layui-form-checkbox:focus-within {
    box-shadow: 0 0 0 3px rgba(22, 186, 170, 0.1) !important;
    border-radius: 2px;
}

.layui-form-radio:focus-within {
    box-shadow: 0 0 0 3px rgba(22, 186, 170, 0.1) !important;
    border-radius: 50%;
}

.layui-badge {
    border-radius: 5px;
}

.sidebar-section {
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.sidebar-section:first-child {
    flex: 1;
    min-height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.sidebar-section:last-child {
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}

.sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: var(--primary);
    font-size: 14px;
}

/* Index页面图标颜色统一 */
.sidebar-section h3 i {
    color: var(--primary);
    font-size: 14px;
}

.editor-actions .layui-btn i {
    font-size: 12px;
    margin-right: 4px;
}

.preview-actions .layui-btn i {
    font-size: 12px;
    margin-right: 4px;
}

/* 统一所有fas图标的颜色 */
.sidebar-section .fas {
    color: var(--primary);
}

.editor-actions .fas {
    color: inherit; /* 按钮内的图标继承按钮颜色 */
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 滚动条样式 */
.preview-list::-webkit-scrollbar,
.preview-detail::-webkit-scrollbar {
    width: 4px;
}

.preview-list::-webkit-scrollbar-track,
.preview-detail::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 2px;
}

.preview-list::-webkit-scrollbar-thumb,
.preview-detail::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    transition: background 0.3s;
}

.preview-list::-webkit-scrollbar-thumb:hover,
.preview-detail::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 2px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .preview-container {
        flex-direction: column;
        height: auto;
    }
    
    .preview-sidebar {
        width: 100%;
        order: 2;
        margin-top: 20px;
    }
    
    .preview-main {
        order: 1;
    }
}

/* 霓虹效果 */
.neon-text {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor;
}

/* Markdown样式 */
.markdown-body {
    font-family: inherit;
    line-height: 1.6;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
    color: #1e293b;
}

.markdown-body pre {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
    margin: 10px 0;
}

.markdown-body code {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.markdown-body blockquote {
    padding-left: 15px;
    margin: 10px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.markdown-body table th,
.markdown-body table td {
    padding: 8px 12px;
    border: 1px solid var(--border);
}

.markdown-body table th {
    background: rgba(0, 0, 0, 0.03);
}

/* 思考内容样式 */
.think-container {
    margin: 5px 0;
    background-color: #f8fafc;
    border-radius: 4px;
    display: inline-block;
    width: 100%;
}
.think-toggle {
    background-color: #f1f5f9;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    margin: 0;
    width: 100%;
    text-align: left;
    transition: all 0.3s;
}
.think-toggle:hover {
    background-color: #e2e8f0;
}
.think-content {
    display: none;
    padding: 10px;
    background-color: white;
    border-radius: 3px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    border: 1px solid #e2e8f0;
    margin-top: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-grow: 1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--border);
}

.empty-state p {
    font-size: 1.1rem;
}

/* Editor Styles */
.content-editor-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.content-editor {
    width: 100%;
    min-height: 300px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: rgba(255, 255, 255, 0.9);
}

.content-preview {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.editor-actions .layui-btn {
    margin: 0;
}

.input-actions-btn {
    margin-top: 15px;
}

/* Request Table Styles */
.request-table-container {
    width: 100%;
    overflow-x: auto;
}

.request-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
}

.request-table th {
    background: #149a8c;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.request-table th:first-child {
    width: 25%;
}

.request-table th:nth-child(2) {
    width: 75%;
}

.request-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: top;
    max-width: none;
    word-wrap: break-word;
    line-height: 1.5;
}

.request-table tr:hover {
    background: rgba(22, 186, 170, 0.05);
}

.request-table .loading-state {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.request-table .empty-state {
    text-align: center;
    padding: 20px;
    color: #999;
    background-color: #fafafa;
}

.request-table .error-state {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background-color: #fdf2f2;
}

.request-table .user-message {
    background-color: #f8f9fa;
    font-weight: 500;
}

.request-table .assistant-message {
    background-color: #ffffff;
}

.table-toggle-btn {
    margin-top: 10px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.table-toggle-btn:hover {
    background: #e9ecef;
    border-color: var(--primary);
    color: var(--primary);
}

.table-toggle-btn i {
    margin-right: 5px;
}

/* 登录页面样式 */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(90deg, #16baaa, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.login-form {
    margin-bottom: 20px;
}

.login-form .layui-form-item {
    margin-bottom: 20px;
    position: relative;
}

.login-form .layui-form-label {
    width: 45px;
    padding: 9px 0;
    color: var(--text-secondary);
}

.login-form .layui-input-block {
    margin-left: 40px;
}

.login-form .layui-input {
    border-radius: 8px;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
    padding-left: 40px;
}

.login-form .layui-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(22, 186, 170, 0.1);
}

.form-icon {
    position: absolute;
    left: 10px;
    top: 25%;
    color: var(--text-secondary);
    font-size: 18px;
}

.login-btn {
    background: linear-gradient(90deg, var(--primary), #149a8c);
    border: none;
    height: 42px;
    line-height: 42px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s;
    width: 100%;
}

.login-btn:hover {
    opacity: 0.9;
    background: #e9ecef;
    border-color: var(--primary);
    color: var(--primary);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.login-form .layui-form-checkbox[lay-skin="primary"] span {
    color: var(--text-secondary);
}

.login-form .layui-form-checkbox[lay-skin="primary"] i {
    border-color: var(--border);
}

.login-form .layui-form-checked[lay-skin="primary"] i {
    border-color: var(--primary) !important;
    background-color: var(--primary);
}

/* 登录页面响应式设计 */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }
}

/* ==================== 通用布局样式 ==================== */

/* 通用应用容器 */
.app-container {
    display: flex;
    gap: 20px;
    height: calc(100vh - 190px);
}

/* 通用侧边栏 */
.app-sidebar {
    width: 350px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    height: calc(100vh - 190px);
}

.app-sidebar .sidebar-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.app-sidebar .sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.app-sidebar h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-sidebar h3 i {
    color: var(--primary);
    font-size: 14px;
}

/* 通用主内容区 */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
    height: calc(100vh - 190px);
    max-width: 990px;
}

/* 对话控制 */
.chat-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 设置选项 */
.chat-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--light-bg);
    border-radius: 8px;
}

.setting-label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.setting-label i {
    color: var(--primary);
    font-size: 12px;
    width: 16px;
}

.setting-control {
    position: relative;
    display: flex;
    align-items: center;
}

.setting-control input[type="checkbox"] {
    width: 40px;
    height: 20px;
    appearance: none;
    background: var(--border);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.setting-control input[type="checkbox"]:checked {
    background: var(--primary);
}

.setting-control input[type="checkbox"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.setting-control input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

/* 模式状态徽章 */
.preview-mode-badge,
.delay-mode-badge,
.tools-mode-badge,
.preview-timeout-badge,
.dingtalk-mode-badge {
    background: #f59e0b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.delay-mode-badge {
    background: #10b981;
}

.tools-mode-badge {
    background: #3b82f6;
}

/* 统计数量徽章 */
.preview-count-badge,
.conversation-count-badge,
.timeout-count-badge {
    background: #16baaa;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.preview-count-badge {
    background: #22c55e;
}

.timeout-count-badge {
    background: #f59e0b;
}

.preview-timeout-badge {
    background: #8b5cf6;
}

.dingtalk-mode-badge {
    background: #14b8a6;
}

/* 历史记录样式 */
.conversation-history {
    flex: 0 0 auto;
    overflow-y: auto;
    height: 310px;
}

.history-loading,
.history-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.history-empty i,
.history-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: var(--text-tertiary);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-toolbar .layui-form-label {
    width: 150px !important;
}

.history-item {
    padding: 12px;
    background: var(--light-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.history-item-content {
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
}

/* 三点菜单按钮 */
.history-item-actions {
    flex-shrink: 0;
    margin-left: 8px;
}

.history-menu-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* 下拉菜单 */
.history-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 120px;
    padding: 4px 0;
    display: none;
}

.history-dropdown-menu.show {
    display: block;
}

.history-dropdown-item {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-dropdown-item:hover {
    background: var(--hover-bg);
}

.history-dropdown-item.delete,
.history-dropdown-item.delete .fas {
    color: #ef4444;
}

.history-dropdown-item.delete:hover {
    background: #fef2f2;
}

.history-item:hover {
    background: var(--hover-bg);
    border-color: var(--primary);
}

.history-item.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.history-menu-btn:hover {
    background: var(--hover-bg);
    color: var(--primary);
}

.history-item.active .history-menu-btn {
    color: rgba(255, 255, 255, 0.8);
}

.history-item.active .history-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.history-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* 标准属性作为后备 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item.active .history-item-meta {
    color: rgba(255, 255, 255, 0.8);
}

.history-item-time {
    font-size: 11px;
}


/* 弹窗圆角样式 */
.layui-layer,
.layui-layer-content,
.layui-layer-title,
.layui-layer-btn {
    border-radius: 8px !important;
}

.layui-layer {
    border-radius: 12px !important;
}

.layui-layer-title {
    border-radius: 12px 12px 0 0 !important;
}

.layui-layer-content {
    border-radius: 0 0 12px 12px !important;
}

.layui-layer-btn {
    border-radius: 0 0 12px 12px !important;
}

/* 确保弹窗内容也有圆角 */
.layui-layer-dialog .layui-layer-content {
    border-radius: 8px !important;
}

/* 滚动条样式 */
.conversation-history::-webkit-scrollbar {
    width: 3px;
}

.conversation-history::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}

.conversation-history::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

.conversation-history::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 模式提示文字 */
.setting-label small {
    color: #6b7280;
    font-size: 11px;
    margin-left: 4px;
    font-weight: normal;
}


/* 聊天消息区域 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--lighter-bg);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.message-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: messageSlide 0.3s ease-out;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px var(--shadow);
}

.message-avatar.user {
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    color: white;
}

.message-avatar.assistant {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.message-content {
    max-width: 70%;
    background: white;
    border-radius: 10px;
    padding: 10px 10px;
    box-shadow: 0 2px 10px var(--shadow);
    position: relative;
    border: 1px solid var(--border);
}

.message-item.user .message-content {
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    color: white;
    border-color: var(--primary);
}

.message-text {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message-text p {
    margin: 0 0 8px 0;
}

.message-text p:last-child {
    margin-bottom: 0;
}

.message-text pre {
    background: var(--light-bg);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid var(--border);
}

.message-text code {
    background: var(--light-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-family-mono);
    font-size: 13px;
    color: var(--primary);
}

.message-text pre code {
    background: none;
    padding: 0;
    border: none;
    color: inherit;
}

.message-text ul,
.message-text ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message-text li {
    margin: 4px 0;
}

.message-text blockquote {
    padding-left: 12px;
    margin: 8px 0;
    color: #666;
    font-style: italic;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

.message-item.user .message-time {
    color: rgba(255,255,255,0.8);
}

/* 聊天输入区域 */
.chat-input-container {
    background: white;
    border-radius: 12px;
    padding: 15px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    max-width: 100%;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.chat-input {
    width: 100%;
    min-height: 44px;
    max-height: 120px;
    padding: 12px 100px 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    resize: none;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: var(--light-bg);
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 186, 170, 0.1);
    background: white;
}

.chat-input:disabled {
    background: var(--light-bg);
    cursor: not-allowed;
}

.input-buttons {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.websearch-button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.websearch-button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.websearch-button:active {
    transform: scale(0.95);
}

.websearch-button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.websearch-button.active:hover {
    background: #14a898;
    color: white;
}

.websearch-button i {
    font-size: 14px;
}

.send-button {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    background: #14a898;
}

.send-button:active:not(:disabled) {
    transform: scale(0.95);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-button i {
    font-size: 14px;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    margin: 0 20px;
    border: 1px solid var(--border);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.3); }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    flex-grow: 1;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border);
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    line-height: 1.6;
}

/* 聊天页面响应式设计 */
@media (max-width: 768px) {
    .chat-container {
        flex-direction: column;
        height: 100vh;
    }

    .chat-sidebar {
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: none;
        border: 1px solid var(--border);
    }

    .sidebar-section {
        margin-bottom: 15px;
    }

    .sidebar-section h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .chat-controls {
        gap: 8px;
    }

    .layui-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

  
    .app-main {
        height: calc(100vh - 280px);
    }

    .chat-messages {
        padding: 16px;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-input-container {
        padding: 12px;
    }

    .input-wrapper {
        gap: 8px;
    }

    .chat-input {
        font-size: 16px; /* 防止 iOS 缩放 */
        min-height: 40px;
        padding: 10px 80px 10px 12px;
    }

    .websearch-button {
        width: 28px;
        height: 28px;
    }

    .websearch-button i {
        font-size: 12px;
    }

    .send-button {
        width: 28px;
        height: 28px;
    }

    .send-button i {
        font-size: 12px;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .app-sidebar {
        padding: 12px;
        margin-bottom: 12px;
    }

    .sidebar-section h3 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .layui-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    
    .app-main {
        height: calc(100vh - 250px);
    }

    .chat-messages {
        padding: 12px;
    }

    .message-content {
        max-width: 90%;
        padding: 10px 12px;
        font-size: 14px;
    }

    .chat-input-container {
        padding: 10px;
    }

    .input-wrapper {
        gap: 6px;
    }

    .chat-input {
        font-size: 16px;
        padding: 8px 70px 8px 12px;
        min-height: 36px;
    }

    .websearch-button {
        width: 24px;
        height: 24px;
    }

    .websearch-button i {
        font-size: 10px;
    }

    .send-button {
        width: 24px;
        height: 24px;
    }

    .send-button i {
        font-size: 10px;
    }

    .message-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .empty-state i {
        font-size: 36px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .chat-sidebar {
        background: var(--card-bg);
        border-color: var(--border);
    }

    .chat-messages {
        background: var(--card-bg);
    }

    .message-content {
        background: var(--card-bg);
        border-color: var(--border);
    }

    .chat-input-container {
        background: var(--card-bg);
        border-color: var(--border);
    }

    .chat-input {
        background: var(--light-bg);
        border-color: var(--border);
        color: var(--text-primary);
    }

    .typing-indicator {
        background: var(--card-bg);
        border-color: var(--border);
    }

    .setting-item {
        border-color: var(--border);
    }

    .empty-state {
        background: var(--card-bg);
    }
}

/* 已回复预览列表页面样式 */
.filter-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.table-section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Layui表格圆角样式 */
.table-container .layui-table,
.table-container .layui-table-view {
    border-radius: 5px;
    overflow: hidden;
}

.table-container .layui-table-header,
.table-container .layui-table-body {
    border-radius: 5px;
}

/* Layui输入框和下拉框圆角样式 */
.layui-input,
.layui-select,
.layui-textarea {
    border-radius: 5px !important;
}

.layui-input:hover,
.layui-select:hover,
.layui-textarea:hover {
    border-radius: 5px !important;
}

.layui-input:focus,
.layui-select:focus,
.layui-textarea:focus {
    border-radius: 5px !important;
}

/* Layui表格工具栏按钮圆角样式 */
.layui-table-tool-self .layui-inline {
    border-radius: 5px !important;
}

.layui-table-tool-self .layui-inline:hover {
    border-radius: 5px !important;
}

.layui-table-tool .layui-btn-sm {
    border-radius: 5px !important;
}

/* Layui分页组件圆角样式 */
.layui-laypage {
    border-radius: 5px !important;
}

.layui-laypage a,
.layui-laypage span {
    border-radius: 5px !important;
}

.layui-laypage .layui-laypage-curr em {
    border-radius: 5px !important;
}

.layui-laypage .layui-laypage-skip .layui-input {
    border-radius: 5px !important;
}

.layui-laypage .layui-laypage-skip .layui-laypage-btn {
    border-radius: 5px !important;
}

.layui-laypage .layui-laypage-limits select {
    border-radius: 5px !important;
}

/* 用户信息展示 */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-id {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 徽章样式 */

.platform-badge {
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.response-time {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

.created-time {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 头部操作区域 */

/* 表格工具栏 */
.table-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 筛选控件增强 */
.setting-control .layui-select,
.setting-control .layui-input {
    width: 180px;
}

.setting-control .layui-btn-group .layui-btn {
    margin-left: 5px;
}

.setting-control .layui-btn-group .layui-btn:first-child {
    margin-left: 0;
}

/* 内容截断工具类 */
.text-truncate {
    max-width: 200px;
    word-wrap: break-word;
    line-height: 1.4;
}

/* 绿幕控制面板样式 */
.green-screen-controls {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.green-screen-controls .layui-form-item {
    margin-bottom: 15px;
}

.green-screen-controls .layui-form-label {
    width: 90px;
    color: var(--text-secondary);
    font-size: 13px;
}

.green-screen-controls .layui-input-block {
    margin-left: 110px;
}

.slider-value {
    text-align: center;
    margin-top: 5px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* 绿幕效果样式 */
.video-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#backgroundLayer {
    z-index: 1;
    transition: opacity 0.3s ease;
}

#processedCanvas {
    z-index: 2;
}

#videoElement {
    z-index: 0;
}

/* 性能监控样式 */
.performance-monitor {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #0f0;
    padding: 5px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.performance-monitor.active {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .preset-bg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .green-screen-controls .layui-form-label {
        width: 70px;
        font-size: 12px;
    }

    .green-screen-controls .layui-input-block {
        margin-left: 90px;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.processing-indicator {
    animation: pulse 1.5s infinite;
}

/* 打印样式 */
@media print {
    .app-sidebar,
    .chat-input-container,
    .typing-indicator {
        display: none;
    }

    .app-container {
        height: auto;
        flex-direction: column;
    }

    .app-main {
        height: auto;
    }

    .chat-messages {
        overflow: visible;
    }
}


.voice-chat-history {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 12px;
    background: #fafafa;
    font-size: 13px;
}

.voice-chat-placeholder {
    text-align: center;
    color: #999;
    padding: 20px 0;
}

.voice-chat-placeholder i {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: #ccc;
}

.voice-chat-item {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.voice-chat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.voice-user-message {
    color: #1976d2;
    margin-bottom: 8px;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 4px;
}

.voice-ai-message {
    color: #388e3c;
    padding: 8px;
    background: #e8f5e8;
    border-radius: 4px;
}

.voice-message-label {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#voiceRecordBtn.recording {
    animation: recordingPulse 1.5s infinite;
}

@keyframes recordingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
        transform: scale(1);
    }
}


/* 录音时长显示 */
.voice-recording-duration {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

/* 语音对话错误提示 */
.voice-chat-error {
    background: #ffebee;
    color: #c62828;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #c62828;
    margin: 8px 0;
    font-size: 12px;
}


/* 语音对话项动画 */
.voice-chat-item {
    animation: slideInUp 0.3s ease-out;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
}

/* 流式处理样式 */
.voice-chat-item.streaming {
    border-left: 3px solid #2196f3;
}

.streaming-indicator {
    color: #2196f3;
    position: relative;
}

.streaming-indicator::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #2196f3;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.streaming-complete {
    color: #4caf50;
    font-weight: bold;
}

.streaming-error {
    color: #f44336;
    font-weight: bold;
}

.voice-chat-item.error {
    border-left-color: #f44336;
    background: #ffebee;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.voice-chat-item:nth-child(1) { animation-delay: 0s; }
.voice-chat-item:nth-child(2) { animation-delay: 0.1s; }
.voice-chat-item:nth-child(3) { animation-delay: 0.2s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 录音按钮改进效果 */
#voiceRecordBtn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#voiceRecordBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#voiceRecordBtn:active::before {
    width: 300px;
    height: 300px;
}


@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== 配置管理页面样式 ==================== */
.config-admin-page {
    background: #f2f3f5 !important;
}

.config-admin-page::before {
    display: none !important;
}

/* 修复Layui布局显示 */
.config-admin-page .layui-layout {
    height: 100vh;
}

.config-admin-page .layui-layout-admin .layui-header {
    background: #393D49;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.config-admin-page .layui-layout-admin .layui-logo {
    color: #fff;
    font-weight: 600;
}

.config-admin-page .layui-layout-admin .layui-side {
    background: #393D49;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.config-admin-page .layui-layout-admin .layui-body {
    background: #fff;
    padding: 0;
    left: 200px;
    overflow: auto;
}


/* 配置页面内容区域 */
.config-main-content {
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.config-admin-page .layui-fluid {
    padding: 20px;
    width: 100%;
    max-width: none;
    margin: 0;
}

.config-admin-page .layui-container {
    padding: 0;
    margin: 0;
    width: 100%;
}

.config-admin-page .layui-row {
    margin: 0;
}

.config-page {
    padding: 0;
    margin: 0;
    background: #fff;
    min-height: calc(100vh - 100px);
    width: 100%;
}

.config-page .config-overview-card .layui-card-body{
    min-height: 120px;
}

/* 页面切换 */
.config-page {
    display: none;
}

.config-page.active {
    display: block;
}

.config-form .layui-input, .layui-select, .layui-textarea {
    width: 60%;
}

/* 备份类型标签 */
.backup-type-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.backup-type-auto {
    background-color: #52c41a;
}

.backup-type-manual {
    background-color: #1890ff;
}

/* 状态指示器 */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.healthy {
    background-color: #52c41a;
}

.status-indicator.warning {
    background-color: #faad14;
}

.status-indicator.error {
    background-color: #f5222d;
}

/* 配置项表格样式 */
.config-table .layui-table {
    margin-top: 10px;
}

.config-table .layui-table th {
    background: #fafafa;
    font-weight: 600;
}

.config-table .layui-table td {
    padding: 12px 8px;
}

.config-table .layui-table input[type="text"],
.config-table .layui-table textarea,
.config-table .layui-table select {
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    padding: 6px 8px;
}

.config-table .layui-table input[type="text"]:focus,
.config-table .layui-table textarea:focus,
.config-table .layui-table select:focus {
    border-color: #16baaa;
    box-shadow: 0 0 0 2px rgba(22, 186, 170, 0.2);
}

.config-items-container {
    margin-top: 20px;
}

.config-item .layui-form-label {
    width: 150px !important;
}

/* 敏感信息样式 */
.config-item-sensitive .layui-input {
    background: #fff5f5;
    border-color: #ffcccc;
}

.config-item-sensitive input::placeholder {
    color: #ff9999;
}

/* 配置项标签tooltip样式优化 */
.config-item .layui-form-label {
    cursor: help;
    position: relative;
}

.config-item .layui-form-label:hover {
    color: #16baaa;
    border-bottom-color: #16baaa;
}


/* 配置项操作按钮 */
.config-actions .layui-btn {
    margin-right: 5px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 16px;
}

/* 加载状态 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay .loading-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .config-page {
        padding: 10px;
    }

    .config-table {
        overflow-x: auto;
    }

    .config-actions {
        white-space: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}